home *** CD-ROM | disk | FTP | other *** search
- global gRandomTimer, cSlotOffset, gSlotObjList, gNumOTimes, cBlurCastOffset, cBlurCastOffset2, gPicOffset, gStartTime, gCounter, gSlotsList, gSlotsFlag
-
- on startMovie
- set the randomSeed to the ticks
- preLoadCast(1, 61)
- setConstants()
- setGlobals()
- set gRandomTimer to random(5 * 60)
- end
-
- on setConstants
- set cSlotOffset to 10
- set gPicOffset to 22
- set cBlurCastOffset to 31
- set cBlurCastOffset2 to 53
- end
-
- on setGlobals
- set gSlotsList to ListShuffler(4)
- set gSlotObjList to []
- repeat with x = 1 to 4
- add(gSlotObjList, birth(script "Slot Parent Script", x))
- puppetSprite(x + cSlotOffset, 1)
- end repeat
- set gCounter to 0
- set gStartTime to the ticks
- set gNumOTimes to 1
- set gSlotsFlag to 0
- end
-
- on animateSlots
- repeat with t = 1 to 4
- slotChanger(getAt(gSlotObjList, t))
- end repeat
- end
-
- on slotGame
- repeat with t = 1 to 4
- playSlotGame(getAt(gSlotObjList, t))
- end repeat
- end
-
- on yourSite
- repeat with t = 1 to 4
- thisIsYourSite(getAt(gSlotObjList, t))
- end repeat
- end
-
- on ListShuffler howMany
- set shuffleList to []
- repeat with x = 1 to howMany
- addAt(shuffleList, x, x)
- end repeat
- repeat with x = 1 to howMany
- set randVar to random(howMany)
- set TempVar to getAt(shuffleList, x)
- set a to getAt(shuffleList, randVar)
- setAt(shuffleList, x, a)
- setAt(shuffleList, randVar, TempVar)
- end repeat
- return shuffleList
- end
-
- on goToNetPage
- alert("Going to next page!")
- end
-